package com.resolution.dietaryassessment.view.mydietary.surface;

import java.io.Serializable;

/**
 * @author By Resolusion
 * @Title: 能量来源评价
 * @Date: 2020/5/11
 * @Time: 16:50
 * @email Res01ution@foxmail.com
 */
public class SourceEvaluation implements Serializable {
    private String evaluation;
    private int minProportion;
    private int maxProportion;
    private int myProportion;

    private String mProportion;
    private String myProportionStr;

    private String evaluate;

    public SourceEvaluation(String evaluation,int minProportion,int maxProportion,int myProportion){
        this.evaluation = evaluation;
        this.minProportion = minProportion;
        this.maxProportion = maxProportion;
        this.myProportion = myProportion;
        mProportion = minProportion + "%-" + maxProportion + "%";
        myProportionStr = myProportion + "%";
        if (myProportion > maxProportion) {
            evaluate = "偏高";
        }else if (myProportion < minProportion){
            evaluate = "偏低";
        }else {
            evaluate = "正常";
        }
    }

    public String getEvaluation() {
        return evaluation;
    }

    public void setEvaluation(String evaluation) {
        this.evaluation = evaluation;
    }

    public int getMinProportion() {
        return minProportion;
    }

    public void setMinProportion(int minProportion) {
        this.minProportion = minProportion;
    }

    public int getMaxProportion() {
        return maxProportion;
    }

    public void setMaxProportion(int maxProportion) {
        this.maxProportion = maxProportion;
    }

    public int getMyProportion() {
        return myProportion;
    }

    public void setMyProportion(int myProportion) {
        this.myProportion = myProportion;
    }

    public String getEvaluate() {
        return evaluate;
    }

    public void setEvaluate(String evaluate) {
        this.evaluate = evaluate;
    }
}
